import type { PluginDefinition } from 'yam-types'
import * as schema from './schema.json'
import redisProvisioner from './handlers/redis'
import type { RedisConfig } from './types'
import { name, version } from './package.json'

export default {
  name,
  schema,
  version,
  handlers: {
    'prepare[?(@.type=="redis")]': redisProvisioner
  }
} as PluginDefinition<RedisConfig>